﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ServerCommon.Net
{
    public delegate void ConnectionEventHandler(ConnectionEventArgs e);

    //连接事件的参数
    public class ConnectionEventArgs : EventArgs
    {
        public EnumConnectionEventType EventType { get; set; }
        public NetSession Session { get; set; }
        public DataMessage Message { get; set; }
        public Pb.IProtocol RecvedProtocol { get; set; }
        public long SessionId { get; set; }
        public long NodeId { get; set; }
    }
}
